package com.lyw.db.entites

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.PrimaryKey

@Entity(tableName = "poem")
data class Poem(
    @PrimaryKey
    val id: Int,
    var writer_id: Int=0,
    val title: String,
    val content: String,
    val remark: String?,
    val translation: String?,
    val shangxi: String?,
    @ColumnInfo(name = "user_like")
    var like:Int=0
)